package com.shi.shiro.service.impl;

import com.shi.shiro.domain.UserRole;
import com.shi.shiro.mapper.UserRoleMapper;
import com.shi.shiro.service.UserRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserRoleServiceImpl implements UserRoleService {

    @Resource
    private UserRoleMapper userRoleMapper;
    @Override
    public boolean batchSaveUserRole(List<UserRole> userRoleList) {
        return userRoleMapper.batchInsertUserRole(userRoleList);
    }

    @Override
    public boolean saveUserRole(UserRole userRole) {
        return userRoleMapper.insertUserRole(userRole);
    }
}
